[#860] Show full USD token price in header#866
Merged
realproject7 merged 1 commit intomainfrom Apr 12, 2026
Merged
Conversation
Add formatUsdTokenPrice() that shows significant digits for small USD values (e.g. $0.0054 instead of < $0.01). Used in TokenPriceBox for the story page header. The generic formatUsdValue() is unchanged for other contexts. Fixes #860 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
project7-interns
approved these changes
Apr 12, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
This matches issue #860. The story header token price now uses a dedicated formatter that exposes the actual USD value for sub-cent prices instead of collapsing to < $0.01, while the generic USD formatter remains unchanged for other contexts.
Findings
- No blocking findings.
Decision
Approving. The change is focused and consistent with the requested scope. GitHub checks were still pending when I reviewed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
< $0.01for small USD values, hiding the actual priceformatUsdTokenPrice()inlib/usd-price.tsthat shows 2 significant digits for values below $0.01 (e.g.$0.0054,$0.00000012)TokenPriceBoxnow uses this formatter; genericformatUsdValue()unchanged for other contextsTest plan
$0.0054) instead of< $0.01Fixes #860
🤖 Generated with Claude Code